package com.prp.gwt.client.vo;

import java.util.ArrayList;
import java.util.List;

import com.google.gwt.user.client.rpc.IsSerializable;

public class MessageList implements IsSerializable{

	private List<Message> messages = new ArrayList<Message>();
	private User user;
	private User currentUser;
	
	public User getCurrentUser() {
		return currentUser;
	}

	public void setCurrentUser(User currentUser) {
		this.currentUser = currentUser;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public int size() {
		return messages.size();
	}

	public Message get(int index) {
		return messages.get(index);
	}

	public void add(Message user) {
		messages.add(user);
	}
	
}
